From: Ray Strode Date: Sat, 6 Apr 2013 14:31:16 +0000 (-0400) Subject: popupMenu: close menu on destroy X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4363 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=77d3712261f838dfbe968bd79898bed82fd4f32a;p=gnome-shell.git popupMenu: close menu on destroy This fixes a crash if a background menu is open and the background changes. https://bugzilla.gnome.org/show_bug.cgi?id=697432 --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index b751daf9e..941f64b53 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -1157,6 +1157,7 @@ const PopupMenuBase = new Lang.Class({ }, destroy: function() { + this.close(); this.removeAll(); this.actor.destroy();